package org.dromara.basic.domain.bo;

import org.dromara.basic.domain.Place;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 跑区设置业务对象 phy_basic_place
 *
 * @author chl
 * @date 2024-08-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Place.class, reverseConvertGenerate = false)
public class PlaceBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long placeId;

    /**
     * 跑区名称
     */
    @NotBlank(message = "跑区名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String placeName;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String placeType;

    /**
     * 人脸抓拍点
     */
//    @NotNull(message = "人脸抓拍点不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long snapshotPoint;

    /**
     * 累计里程
     */
//    @NotNull(message = "累计里程不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal mileage;

    /**
     * 人数
     */
//    @NotNull(message = "人数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long headcount;


}
